<?php
require_once ('connection.php');

class ORMDoctor Extends Connection {
private $conexion;
private $query;

    //put your code here
    public function obtenerNombreDoctor()
    {   $this->conexion = new Connection();
        $this->conexion->connect();
        $resultado="select * from Doctor inner join Persona on Doctor.Persona_idPersona = Persona.idpersona order by nombre asc ";
        $this->query = $this->conexion->executeQuery($resultado);
        return $this->query;
    }
   
}
?>
